<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>
    web applications and email : Forums : PythonAnywhere
</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="Forums : PythonAnywhere">
        <meta name="author" content="PythonAnywhere LLP">
        <meta name="google-site-verification" content="O4UxDrfcHjC44jybs2vajc1GgRkTKCTRgVzeV6I9V14" />

        <!-- Le styles -->
        <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet">
        <link href="/static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
        <link href="/static/anywhere/styles/bootstrap_base.css" rel="stylesheet">
        
    
    <link rel="stylesheet" href="/static/anywhere/styles/forums.css" type="text/css" media="screen" charset="utf-8" />

    <link rel="stylesheet" href="/static/pygments/style.css" type="text/css" media="screen" charset="utf-8" />

        <link rel="stylesheet" href="/static/jquery/jquery-ui-1.8.11.custom.css" type="text/css" media="screen" charset="utf-8" />
        
    
    <link rel="alternate" type="application/rss+xml" title="RSS" href="/forums/topic/168/rss" />

        <style type="text/css">
            body {
                height: auto;
            }
        </style>
        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
        <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->

        <!-- Le fav and touch icons -->
        <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
        <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
        <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
    </head>

     <body>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div id="id_internal_nav_bar_container" class="container">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    </a>
                    <a class="brand" href="/"><img id="id_logo" src="/static/anywhere/images/logo-234x35.png" height="35" title="PythonAnywhere logo" alt="PythonAnywhere logo" /></a>
                    <div class="nav-collapse">
                        <ul id="id_header_links" class="nav">
                            <li><a id="id_feedback_link" class='feedback_link' href="">Send feedback</a></li>
                            <li><a id="id_forums_link" href="/forums/">Forums</a></li>
                            <li><a href="/wiki/" id="id_help_link">Help</a></li>
                            <li><a href="http://blog.pythonanywhere.com/" id="id_blog_link">Blog</a></li>
                            
                            
                                <li><a style="font-weight: bold;" href="/pricing/" id="id_pricing_link">Pricing & signup</a></li>
                                <li><a href="/login/?next=/forums/topic/168/" id="id_login_link">Log in</a></li>
                            
                        </ul>
                    </div>
                </div>
            </div>
        </div>

        <div class="top-container" id="id_dummy"></div>

        

        
    
    <div class="container">
        <div class="row">
            <div class="span8 offset3">
                <h1>PythonAnywhere Forums</h1>
            </div>
        </div>



    <div class="row">
        <div class="span8 offset3">
            <p>
                <a href="/forums/start_topic/" id="id_start_new_topic">Start a new topic</a> |
                <a href="/forums/">Back to all topics</a> |
                <a href="/forums/topic/168/rss">This topic's RSS</a>
            </p>
        </div>
    </div>
    <div class="row">
        <div class="span8 offset3 topic">
            <h2>web applications and email</h2>
        </div>
    </div>

    
        <div class="row">
            <div id="id_post_964" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_964_content_text" class="span8">
                        <p>Does anyone know how to manage email related activities for a web application? I would like to send out various reminders through email based on various actions that people take as they are interacting with the web application but I'm not sure where to start.</p>
<p>The first thing I guess would be to figure what kind of email server hosting I need but I'm not sure where to start.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_964_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            davidk01
                            |
                            43
                            posts
                            |
                            
                        </span>
                        <span id="id_post_964_created_date">
                            July 3, 2012, 11:54 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_964">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_966" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_966_content_text" class="span8">
                        <p>Hi David, a free way to get started doing this is to use Google Apps for domains and then use their SMTP server. Eventually, as your application scales, you might hit their daily sending limits. After that their are lots of companies that provide SMTP as a service. </p>
<p>Django has some builtin stuff that makes sending emails quite simple. But using <a href="http://docs.python.org/library/smtplib.html">smtplib</a>, in the standard library, is really not that hard. Does that point you in the right direction?</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_966_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            hansel
                            |
                            435
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_966_created_date">
                            July 4, 2012, 10:11 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_966">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_974" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_974_content_text" class="span8">
                        <p>Yes hansel, it does. I had been looking at rackspace and fusemail but I didn't even think of Google Apps.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_974_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            davidk01
                            |
                            43
                            posts
                            |
                            
                        </span>
                        <span id="id_post_974_created_date">
                            July 4, 2012, 11:12 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_974">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_981" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_981_content_text" class="span8">
                        <p>I've used Google's SMTP in some personal Django apps and it Just Works™. I remember having go and look up IMAP headers for another project when using smtplib directly. But it wasn't that hard. </p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_981_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            hansel
                            |
                            435
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_981_created_date">
                            July 5, 2012, 10:38 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_981">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_982" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_982_content_text" class="span8">
                        <p>Actually, I think you don't even need to use Google Apps for domains -- a normal Gmail account will work.  I've got a Django app that sends email using these settings:</p>
<div class="codehilite"><pre><span class="n">EMAIL_SUBJECT_PREFIX</span> <span class="o">=</span> <span class="s">&quot;[WebGL Jobs] &quot;</span>
<span class="n">EMAIL_HOST</span> <span class="o">=</span> <span class="s">&quot;smtp.gmail.com&quot;</span>
<span class="n">EMAIL_HOST_USER</span> <span class="o">=</span> <span class="s">&quot;webgljobs@gmail.com&quot;</span>
<span class="n">EMAIL_PORT</span> <span class="o">=</span> <span class="mi">587</span>
<span class="n">EMAIL_USE_TLS</span> <span class="o">=</span> <span class="n">True</span>
<span class="n">EMAIL_HOST_PASSWORD</span> <span class="o">=</span> <span class="err">&#39;</span><span class="n">some</span> <span class="n">kind</span> <span class="n">of</span> <span class="n">password</span><span class="err">&#39;</span>
</pre></div>


<p>It's worth noting that this will only work on a PythonAnywhere account with unrestricted Internet access, though -- so it's fine for you, davidk01, but won't work for free users.  I guess we need to work out something else for them.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_982_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            giles
                            |
                            866
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_982_created_date">
                            July 5, 2012, 10:44 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_982">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_985" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_985_content_text" class="span8">
                        <p>Thanks for the info guys. I went ahead registered a domain through Google Apps. I need to learn this stuff anyway and having a dedicated email address for the domain I think will be better in the long run.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_985_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            davidk01
                            |
                            43
                            posts
                            |
                            
                        </span>
                        <span id="id_post_985_created_date">
                            July 5, 2012, 7:29 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_985">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_987" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_987_content_text" class="span8">
                        <p>I've helped a LOT of people set up Google Apps on their domain so if you trip over something do ask me. If you registered the domain through Google directly though the DNS stuff should all just work anyway. </p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_987_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            hansel
                            |
                            435
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_987_created_date">
                            July 6, 2012, 10:08 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_987">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_992" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_992_content_text" class="span8">
                        <p>Thanks for the offer. I got the email part to work from my local machine and I think I got the CNAME stuff figured out as well. I'm using web2py and it is surprisingly straightforward so I don't think I'll run into too many issues when I try to run it on pythonanywhere.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_992_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            davidk01
                            |
                            43
                            posts
                            |
                            
                        </span>
                        <span id="id_post_992_created_date">
                            July 6, 2012, 4:40 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_992">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_1382" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_1382_content_text" class="span8">
                        <p>hi, i tried to send email using setting above:</p>
<div class="codehilite"><pre><span class="n">EMAIL_SUBJECT_PREFIX</span> <span class="o">=</span> <span class="s">&quot;[test] &quot;</span>
<span class="n">EMAIL_USE_TLS</span> <span class="o">=</span> <span class="bp">True</span>
<span class="n">EMAIL_HOST</span> <span class="o">=</span> <span class="s">&#39;smtp.gmail.com&#39;</span>
<span class="n">EMAIL_HOST_USER</span> <span class="o">=</span> <span class="s">&#39;myaccount@gmail.com&#39;</span>
<span class="n">EMAIL_HOST_PASSWORD</span> <span class="o">=</span> <span class="s">&#39;mypass&#39;</span>
<span class="n">EMAIL_PORT</span> <span class="o">=</span> <span class="mi">587</span>
</pre></div>


<p>but I have this:</p>
<div class="codehilite"><pre><span class="nl">SMTPAuthenticationError:</span> <span class="p">(</span><span class="mi">535</span><span class="p">,</span> <span class="err">&#39;</span><span class="mf">5.7.1</span> <span class="n">Please</span> <span class="n">log</span> <span class="n">in</span> <span class="n">with</span> <span class="n">your</span> <span class="n">web</span> <span class="n">browser</span> <span class="n">and</span> <span class="n">then</span> <span class="n">try</span> <span class="n">again</span><span class="p">.</span> <span class="n">Learn</span> <span class="n">more</span> <span class="n">at</span><span class="err">\</span><span class="n">n5</span><span class="mf">.7.1</span> <span class="n">https</span><span class="o">:</span><span class="c1">//support.google.com/mail/bin/answe</span>
<span class="n">r</span><span class="p">.</span><span class="n">py</span><span class="o">?</span><span class="n">answer</span><span class="o">=</span><span class="mi">78754</span> <span class="n">eb10sm7595930qab</span><span class="mf">.4</span><span class="err">&#39;</span><span class="p">)</span>
</pre></div>


<p>or this: </p>
<div class="codehilite"><pre><span class="p">[</span><span class="n">Errno</span> <span class="mi">101</span><span class="p">]</span> <span class="n">Network</span> <span class="n">is</span> <span class="n">unreachable</span>
</pre></div>


<p>p.s.</p>
<p>the password and user are correct</p>
<p>p.p.s.</p>
<p>from shell follow code works:</p>
<div class="codehilite"><pre><span class="kn">from</span> <span class="nn">django.core.mail</span> <span class="kn">import</span> <span class="n">send_mail</span>

<span class="n">send_mail</span><span class="p">(</span><span class="s">&#39;test email&#39;</span><span class="p">,</span> <span class="s">&#39;hello world&#39;</span><span class="p">,</span> <span class="s">&#39;from@gmail.com&#39;</span><span class="p">,</span> <span class="p">[</span><span class="n">to</span><span class="nd">@gmail.com</span><span class="s">&#39;])</span>
</pre></div>


<p>but when i use the same code in view.py i get error</p>
<p>p.p.p.s.</p>
<p><strong>i used <code>use_https=True</code> - it was mistake</strong></p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_1382_creator_details">
                            
                                
                            
                            xDrgh
                            |
                            6
                            posts
                            |
                            
                        </span>
                        <span id="id_post_1382_created_date">
                            Aug. 16, 2012, 6:53 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_1382">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_1383" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_1383_content_text" class="span8">
                        <p>The p in p.s. is <em>post</em>, so when you string them it would be p.p.s and p.p.p.s...☺</p>
<p>p.s. the s is <em>script</em>.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_1383_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            a2j
                            |
                            549
                            posts
                            |
                            
                        </span>
                        <span id="id_post_1383_created_date">
                            Aug. 16, 2012, 8:18 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_1383">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_1386" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_1386_content_text" class="span8">
                        <blockquote>
<p>i used use_https=True - it was mistake</p>
</blockquote>
<p>@xDrgh -- is everything working OK now?</p>
<p>@a2j -- <a href="http://www.amazingsuperpowers.com/2012/08/rsvp/">you might like this comic</a> ;-)</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_1386_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            giles
                            |
                            866
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_1386_created_date">
                            Aug. 17, 2012, 10:10 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_1386">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_1387" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_1387_content_text" class="span8">
                        <p>@giles -- as a matter of fact I did. Some of the comments were as good as the comic as well...☺</p>
<p>Example: </p>
<div class="codehilite"><pre><span class="n">Dinner</span> <span class="n">Party</span>

<span class="nl">When:</span> <span class="mi">12</span> <span class="n">Noon</span> <span class="n">to</span> <span class="mi">2</span> <span class="n">A</span><span class="p">.</span><span class="n">M</span><span class="p">.</span> <span class="n">in</span> <span class="n">the</span> <span class="n">morning</span>
<span class="nl">Where:</span> <span class="n">My</span> <span class="n">house</span><span class="p">.</span> <span class="n">If</span> <span class="n">you</span> <span class="n">arrive</span> <span class="n">early</span><span class="p">,</span> <span class="n">you</span><span class="err">’</span><span class="n">ll</span> <span class="n">have</span> <span class="n">to</span> <span class="n">wait</span> <span class="n">outside</span> <span class="n">in</span> <span class="n">the</span> <span class="n">yard</span><span class="p">.</span>

<span class="n">We</span> <span class="n">have</span> <span class="n">foreign</span> <span class="n">imported</span> <span class="n">wine</span><span class="p">.</span> <span class="n">Don</span><span class="err">’</span><span class="n">t</span> <span class="n">bring</span> <span class="n">your</span> <span class="n">own</span> <span class="n">alcoholic</span> <span class="n">drinks</span><span class="p">.</span>
<span class="n">Don</span><span class="err">’</span><span class="n">t</span> <span class="n">bring</span> <span class="n">bouquets</span> <span class="n">of</span> <span class="n">flowers</span> <span class="n">either</span><span class="p">,</span> <span class="n">unless</span> <span class="n">it</span><span class="err">’</span><span class="n">s</span> <span class="n">a</span> <span class="n">fake</span> <span class="n">replica</span><span class="p">.</span> <span class="n">Some</span> <span class="n">people</span>
<span class="n">have</span> <span class="n">allergies</span><span class="p">.</span>

<span class="o">*</span><span class="n">You</span> <span class="n">can</span> <span class="n">bring</span> <span class="n">one</span> <span class="n">fellow</span> <span class="n">colleague</span><span class="p">.</span> <span class="n">Please</span> <span class="n">RSVP</span> <span class="n">so</span> <span class="n">I</span> <span class="n">can</span> <span class="n">plan</span> <span class="n">in</span> <span class="n">advance</span><span class="p">.</span>
<span class="n">I</span> <span class="n">need</span> <span class="n">to</span> <span class="n">know</span> <span class="n">the</span> <span class="n">sum</span> <span class="n">total</span> <span class="n">of</span> <span class="n">the</span> <span class="n">people</span> <span class="n">who</span> <span class="n">are</span> <span class="n">arriving</span> <span class="n">so</span> <span class="n">I</span> <span class="n">can</span> <span class="n">prepare</span> <span class="n">the</span>
<span class="n">basic</span> <span class="n">necessities</span><span class="p">.</span>
</pre></div>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_1387_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            a2j
                            |
                            549
                            posts
                            |
                            
                        </span>
                        <span id="id_post_1387_created_date">
                            Aug. 17, 2012, 3:27 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_1387">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_1388" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_1388_content_text" class="span8">
                        <p>Wonderful!  One of the best comment threads that I've seen on my LCD display recently...  I was delighted to learn it's called <a href="http://en.wikipedia.org/wiki/RAS_Syndrome">RAS syndrome</a></p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_1388_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            giles
                            |
                            866
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_1388_created_date">
                            Aug. 17, 2012, 3:37 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_1388">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_1389" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_1389_content_text" class="span8">
                        <p>I saw that too for the first time.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_1389_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            a2j
                            |
                            549
                            posts
                            |
                            
                        </span>
                        <span id="id_post_1389_created_date">
                            Aug. 17, 2012, 5:14 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_1389">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_1391" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_1391_content_text" class="span8">
                        <p>xD,
thanks for the correction, yes now it works.</p>
<p>('use_https=False' + unblock on:  https://accounts.google.com/DisplayUnlockCaptcha )</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_1391_creator_details">
                            
                                
                            
                            xDrgh
                            |
                            6
                            posts
                            |
                            
                        </span>
                        <span id="id_post_1391_created_date">
                            Aug. 19, 2012, 7:51 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_1391">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_2513" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_2513_content_text" class="span8">
                        <p>Another incredibly helpful (and unusually amusing) PA forum!  I am a noob and this forum helped me get GMAIL set up as my SMTP for rough dev stuff in 5 minutes.  Super super helpful.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_2513_creator_details">
                            
                                
                            
                            jeanpierrehill
                            |
                            5
                            posts
                            |
                            
                        </span>
                        <span id="id_post_2513_created_date">
                            Dec. 11, 2012, 3:21 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_2513">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5335" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5335_content_text" class="span8">
                        <p>Hi, I have the same problem described by xDrgh on Aug. 16, 2012, 6:53 p.m.
xDrgh's p.p.p.s seems to suggest the problem was caused by a "use_https=True" setting somewhere. Can someone please explain where? I don't have that in my settings.py</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5335_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            donthireddy
                            |
                            4
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5335_created_date">
                            July 5, 2013, 10:06 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_5335">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5346" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5346_content_text" class="span8">
                        <p>Just a note to say that @donthireddy and I are working this one out over email, and I'll post the solution here if there's something new and generally useful.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5346_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            giles
                            |
                            866
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_5346_created_date">
                            July 7, 2013, 6:28 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_5346">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5353" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5353_content_text" class="span8">
                        <p>It turned out not to be generally useful, just a bit of Django configuration confusion.  </p>
<p>The settings listed above should still work.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5353_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            giles
                            |
                            866
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_5353_created_date">
                            July 9, 2013, 2:24 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_5353">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5365" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5365_content_text" class="span8">
                        <p>I need to be able to send out emails to customers, but using gmail means I can't control the address the users see (I want a 'noreply@mydomain' as the address, and Google forces my normal gmail one in its place.)</p>
<p>I asked my email provider (GoDaddy) for their relay server details so I could pull the same trick using a custom address, but they refused. I'm unsure how best to proceed.</p>
<p>Can anyone suggest anything?</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5365_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            evilkillerfiggin
                            |
                            48
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5365_created_date">
                            July 10, 2013, 2:37 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_5365">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5370" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5370_content_text" class="span8">
                        <p>Hmm, tricky.  You need an SMTP server that's configured to send stuff for your domain.  If GoDaddy don't supply one, then perhaps you could look at Google Apps for your domain?  Problem is, of course, that it's not free.  But they're the only ones that spring to mind for me.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5370_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            giles
                            |
                            866
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_5370_created_date">
                            July 10, 2013, 5:34 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_5370">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5385" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5385_content_text" class="span8">
                        <p>Since you have a paid account your ability to connect out is unrestricted, hence you could connect directly to SMTP servers. This is potentially a troublesome option, however, as services are starting to distrust SMTP hosts that they don't recognise and which don't match your domain. Also, it means using some pretty low-level libraries to do the SMTP exchange.</p>
<p>If the volume of email you send is pretty low (less than 200 per day) then you can get a free account with <a href="http://sendgrid.com/">SendGrid</a>, who are an outfit set up for people to send automated and bulk email. I had a brief play with their services recently and it seemed to work, but I didn't really push it around. One thing I did notice was that because they include a <a href="http://en.wikipedia.org/wiki/DomainKeys_Identified_Mail">DKIM</a> signature, some email clients (e.g. Gmail) may show the email as having come "via sendgrid.me". The "From" address will still be correct, however.</p>
<p>They offer an SMTP server which will accept email for any destination address (provided you've authenticated via your SendGrid credentials), or they also offer direct APIs instead, including Python wrappers. You can find examples <a href="http://sendgrid.com/docs/Code_Examples/python.html">here</a>.</p>
<p>You can use their services to send more than 200 emails a day (indeed, they're aiming at much higher volumes) but then it becomes <a href="http://sendgrid.com/pricing.html">a paid service</a>.</p>
<p>Just to clarify I haven't used it nearly enough to be <em>recommending</em> it - I don't have a need to send email to anyone but myself, currently. However, it's an option you may like to consider.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5385_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            Cartroo
                            |
                            638
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5385_created_date">
                            July 11, 2013, 1:14 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_5385">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5389" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5389_content_text" class="span8">
                        <p>Thanks for that Cartroo - I'd hoped some service like that would exist. As long as SendGrid refrain from <a href="http://www.denverpost.com/business/ci_22863310/sendgrid-employees-tweet-sets-off-firestorm">angrily posting my picture to Twitter</a> then they should be perfect.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5389_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            evilkillerfiggin
                            |
                            48
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5389_created_date">
                            July 12, 2013, 11:56 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_5389">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5391" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5391_content_text" class="span8">
                        <p>Oh yes, I'd forgotten that it was SendGrid who were involved in that whole furore. I remember thinking that there wasn't a single party involved that didn't behave inappropriately in some way, just a massive heap of poor decisions all piled atop one another, a bit like that <a href="http://www.guardian.co.uk/law/2012/jul/27/twitter-joke-trial-high-court">Paul Chambers debacle</a>. It seemed to me, however, that the biggest crime was against comedy - I mean, innuendo about forking and dongles? Seriously?</p>
<p>Anyway, if you give them a try in a production environment (SendGrid, that is, not poor innuendos) then it would be very helpful to post an update here with your experiences, for anybody else with the same issue.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5391_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            Cartroo
                            |
                            638
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5391_created_date">
                            July 12, 2013, 1:05 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_5391">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5394" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5394_content_text" class="span8">
                        <p>I will try both SendGrid and poor innuendos in a production environment then.</p>
<p>So far they've been pretty good - got me up and running within a couple of hours. Friendly support team as well. Will let you know how it goes.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5394_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            evilkillerfiggin
                            |
                            48
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5394_created_date">
                            July 12, 2013, 2:38 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_5394">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5694" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5694_content_text" class="span8">
                        <p>Hi, I'm having the same problem than xDrgh, and like donthireddy I don't know where to put this "use_https=False". And my english is not very good, but I think giles said would put the answer but didn't, right?</p>
<p>So... I search on the web and I found some code like this:</p>
<div class="codehilite"><pre><span class="n">context</span> <span class="o">=</span> <span class="p">{</span>
<span class="err">&#39;</span><span class="n">email</span><span class="err">&#39;</span><span class="o">:</span> <span class="n">email</span><span class="p">,</span>
<span class="err">&#39;</span><span class="n">domain</span><span class="err">&#39;</span><span class="o">:</span> <span class="n">domain</span><span class="p">,</span>
<span class="err">&#39;</span><span class="n">site_name</span><span class="err">&#39;</span><span class="o">:</span> <span class="n">site_name</span><span class="p">,</span>
<span class="err">&#39;</span><span class="n">protocol</span><span class="err">&#39;</span><span class="o">:</span> <span class="n">use_https</span> <span class="n">and</span> <span class="err">&#39;</span><span class="n">https</span><span class="err">&#39;</span> <span class="n">or</span> <span class="err">&#39;</span><span class="n">http</span><span class="err">&#39;</span><span class="p">,</span>
<span class="err">&#39;</span><span class="n">key</span><span class="err">&#39;</span><span class="o">:</span> <span class="n">key</span>
<span class="p">}</span>

<span class="n">subject</span> <span class="o">=</span> <span class="n">render_to_string</span><span class="p">(</span><span class="n">subject_template_name</span><span class="p">,</span> <span class="n">context</span><span class="p">)</span>
<span class="cp"># Email subject *must not* contain newlines</span>
<span class="n">subject</span> <span class="o">=</span> <span class="err">&#39;&#39;</span><span class="p">.</span><span class="n">join</span><span class="p">(</span><span class="n">subject</span><span class="p">.</span><span class="n">splitlines</span><span class="p">())</span>

<span class="n">body</span> <span class="o">=</span> <span class="n">render_to_string</span><span class="p">(</span><span class="n">email_template_name</span><span class="p">,</span> <span class="n">context</span><span class="p">)</span>

<span class="n">email</span> <span class="o">=</span> <span class="n">EmailMessage</span><span class="p">(</span><span class="n">subject</span><span class="p">,</span> <span class="n">body</span><span class="p">,</span> <span class="n">to</span><span class="o">=</span><span class="p">[</span><span class="n">email</span><span class="p">])</span>
<span class="n">email</span><span class="p">.</span><span class="n">send</span><span class="p">()</span>
</pre></div>


<p>But I don't really understand what is going on here, I tried a couple of things and it did'nt work.</p>
<p>I have this code:</p>
<div class="codehilite"><pre><span class="n">def</span> <span class="n">contact</span><span class="p">(</span><span class="n">request</span><span class="p">)</span><span class="o">:</span>
    <span class="k">if</span> <span class="n">request</span><span class="p">.</span><span class="n">method</span> <span class="o">==</span> <span class="err">&#39;</span><span class="n">POST</span><span class="err">&#39;</span><span class="o">:</span>
        <span class="n">form</span> <span class="o">=</span> <span class="n">ContactForm</span><span class="p">(</span><span class="n">request</span><span class="p">.</span><span class="n">POST</span><span class="p">)</span>
        <span class="k">if</span> <span class="n">form</span><span class="p">.</span><span class="n">is_valid</span><span class="p">()</span><span class="o">:</span>
            <span class="n">cd</span> <span class="o">=</span> <span class="n">form</span><span class="p">.</span><span class="n">cleaned_data</span>
            <span class="n">message</span> <span class="o">=</span> <span class="n">cd</span><span class="p">[</span><span class="err">&#39;</span><span class="n">message</span><span class="err">&#39;</span><span class="p">]</span> <span class="o">+</span> <span class="s">&quot;</span><span class="se">\n</span><span class="s">&quot;</span> <span class="o">+</span> <span class="s">&quot;Comunicate with: &quot;</span> <span class="o">+</span> <span class="n">cd</span><span class="p">[</span><span class="err">&#39;</span><span class="n">email</span><span class="err">&#39;</span><span class="p">]</span>
            <span class="n">email</span> <span class="o">=</span> <span class="n">EmailMessage</span><span class="p">(</span><span class="n">cd</span><span class="p">[</span><span class="err">&#39;</span><span class="n">subject</span><span class="err">&#39;</span><span class="p">],</span> <span class="n">message</span><span class="p">,</span> <span class="n">to</span><span class="o">=</span><span class="p">[</span><span class="err">&#39;</span><span class="n">myaccount</span><span class="err">@</span><span class="n">gmail</span><span class="p">.</span><span class="n">com</span><span class="err">&#39;</span><span class="p">])</span>
            <span class="n">email</span><span class="p">.</span><span class="n">send</span><span class="p">()</span>
            <span class="k">return</span> <span class="n">HttpResponseRedirect</span><span class="p">(</span><span class="err">&#39;</span><span class="o">/</span><span class="n">contact</span><span class="o">/</span><span class="n">thanks</span><span class="o">/</span><span class="err">&#39;</span><span class="p">)</span>
    <span class="nl">else:</span>
        <span class="n">form</span> <span class="o">=</span> <span class="n">ContactForm</span><span class="p">()</span>
    <span class="k">return</span> <span class="n">render_to_response</span><span class="p">(</span><span class="err">&#39;</span><span class="n">contact</span><span class="p">.</span><span class="n">html</span><span class="err">&#39;</span><span class="p">,</span> <span class="p">{</span><span class="err">&#39;</span><span class="n">form</span><span class="err">&#39;</span><span class="o">:</span> <span class="n">form</span><span class="p">},</span> <span class="n">context_instance</span><span class="o">=</span><span class="n">RequestContext</span><span class="p">(</span><span class="n">request</span><span class="p">))</span>
</pre></div>


<p>where should I put the "use_https=False"?? </p>
<p>Thanks a lot.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5694_creator_details">
                            
                                
                            
                            bonsai
                            |
                            3
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5694_created_date">
                            July 29, 2013, 9:32 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_5694">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5707" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5707_content_text" class="span8">
                        <p>What error do you get? I think that <code>use_https</code> is not part of sending the mail, it's used to determine what's in the email that gets sent.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5707_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            glenn
                            |
                            418
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_5707_created_date">
                            July 30, 2013, 1:55 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_5707">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5714" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5714_content_text" class="span8">
                        <p>Just going to see again the error and it disapeared.. they were:</p>
<div class="codehilite"><pre><span class="nl">SMTPAuthenticationError:</span> <span class="p">(</span><span class="mi">535</span><span class="p">,</span> <span class="err">&#39;</span><span class="mf">5.7.1</span> <span class="n">Please</span> <span class="n">log</span> <span class="n">in</span> <span class="n">with</span> <span class="n">your</span> <span class="n">web</span> <span class="n">browser</span> <span class="n">and</span> <span class="n">then</span> <span class="n">try</span> <span class="n">again</span><span class="p">.</span> <span class="n">Learn</span> <span class="n">more</span> <span class="n">at</span><span class="err">\</span><span class="n">n5</span><span class="mf">.7.1</span> <span class="n">https</span><span class="o">:</span><span class="c1">//support.google.com/mail/bin/answer.py?answer=78754 eb10sm7595930qab.4&#39;)</span>
</pre></div>


<p>or this:</p>
<div class="codehilite"><pre><span class="p">[</span><span class="n">Errno</span> <span class="mi">101</span><span class="p">]</span> <span class="n">Network</span> <span class="n">is</span> <span class="n">unreachable</span>
</pre></div>


<p>I tried from diferents ways and it works.. thanks :)</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5714_creator_details">
                            
                                
                            
                            bonsai
                            |
                            3
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5714_created_date">
                            July 30, 2013, 8 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_5714">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5722" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5722_content_text" class="span8">
                        <p>Hmm.  This might be due to Gmail changing their smtp servers' IP addresses again.  Free PythonAnywhere users have filtered Internet access from their web apps, and we need to keep the filter up-to-date whenever the IPs change.  It might be that they temporarily moved to a different IP, breaking your code, then back again.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5722_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            giles
                            |
                            866
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_5722_created_date">
                            July 31, 2013, 10:49 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_5722">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5726" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5726_content_text" class="span8">
                        <p>oh.. good to know giles. Thanks :)</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5726_creator_details">
                            
                                
                            
                            bonsai
                            |
                            3
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5726_created_date">
                            July 31, 2013, 1:33 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/168/#id_post_5726">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    

    




        <div id="id_footer" class="container">

            <footer id="id_copyright_div">
                <p>
                    Copyright &copy; 2013 PythonAnywhere LLP
                    &mdash;
                    <a href="/terms/">Terms</a>
                    &mdash;
                    <a href="/privacy/">Privacy</a><br/>
                    "Python" is a registered trademark of the Python Software Foundation.
                </p>
            </footer>

        </div>

        
        

        <div id="id_feedback_dialog" title="Help us improve" style="display:none">
    <div id="id_feedback_dialog_blurb_big" class="dialog_blurb_big">
        It's always a pleasure to hear from you!
    </div>
    <div id="id_feedback_dialog_blurb_small">
        Ask us a question, or tell us what you love or hate about PythonAnywhere.<br/>
        We'll get back to you over email ASAP.
    </div>
    <textarea id="id_feedback_dialog_text" rows="6"></textarea>
    <input id="id_feedback_dialog_email_address" type="text" class="default_prompt"/>
    <div id="id_feedback_dialog_error" class="pa_hidden">
        Sorry, there was an error connecting to the server. <br/>Please try again in a few moments...
    </div>
    <div class="dialog_buttons">
        <img id="id_feedback_dialog_spinner" src="/static/anywhere/images/spinner-small.gif" />
        <button class="btn btn-primary" id="id_feedback_dialog_ok_button">OK</button>
        <button class="btn" id="id_feedback_dialog_cancel_button">Cancel</button>
    </div>
</div>


        <!-- Le javascript
        ================================================== -->
        <!-- Placed at the end of the document so the pages load faster -->
        <script type="text/javascript" src="/static/jquery/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="/static/jquery/jquery-ui-1.8.11.custom.min.js"></script>
        <script src="/static/bootstrap/js/bootstrap-transition.js"></script>
        <script src="/static/bootstrap/js/bootstrap-alert.js"></script>
        <script src="/static/bootstrap/js/bootstrap-modal.js"></script>
        <script src="/static/bootstrap/js/bootstrap-dropdown.js"></script>
        <script src="/static/bootstrap/js/bootstrap-scrollspy.js"></script>
        <script src="/static/bootstrap/js/bootstrap-tab.js"></script>
        <script src="/static/bootstrap/js/bootstrap-tooltip.js"></script>
        <script src="/static/bootstrap/js/bootstrap-popover.js"></script>
        <script src="/static/bootstrap/js/bootstrap-button.js"></script>
        <script src="/static/bootstrap/js/bootstrap-collapse.js"></script>
        <script src="/static/bootstrap/js/bootstrap-carousel.js"></script>
        <script src="/static/bootstrap/js/bootstrap-typeahead.js"></script>

        <script type="text/javascript">
            var urls = {};
            var Anywhere = {};
            Anywhere.urls = {};
        </script>
        <script type="text/javascript" src="/static/anywhere/scripts/ajax_utils.js"></script>

        <script type="text/javascript" src="/static/anywhere/scripts/feedback_dialog.js"></script>
        
        <script type="text/javascript">
            $(function() {
                $.extend(
                    urls,
                    {
                        feedback: '/feedback/submit/'
                    }
                );
                
                    Anywhere.FeedbackDialog.Initialise(urls, false);
                
            });
        </script>

        <script type="text/javascript">

            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-18014859-6']);
            _gaq.push(['_trackPageview']);

            (function() {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();

        </script>

        



    </body>
</html>
